import { createStore } from 'vuex'

export default createStore({
  state: {
    usertoken: localStorage.getItem('Cusertoken') ? localStorage.getItem("Cusertoken") : ""
  },
  getters: {
  },
  mutations: {
    changeLogin(state, user) {
      state.usertoken = user;
      localStorage.setItem("Cusertoken", user)
    }
  },
  actions: {
  },
  modules: {
  }
})
